package com.ssyan.adapter.objectadapter;



/**
 * @author ssyan
 * @Description TODO
 * @create 2021/8/28 16:55
 * @Version 1.0
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("===对象适配器模式===");
        Phone phone = new Phone();
        phone.charging(new VoltageAdapter(new Voltage220V()));
    }
}
